package com.ocm.core.exception;

public class TypeCodeException extends ExceptionCode {

   public static final int PROPERTYTYPE = 0;

   public static final int STEPTYPE = 1;

   public static final int CLASSDEF = 2;

   public static final int ASSOCIATIONTYPE = 3;

   public static final int USERDETAILTYPE = 4;

   public static final int PERMISSIONTYPE = 5;

   public static final int PARTICIPANTTYPE = 6;
 
   public String getMessage(int messageCode) {
      String message = "";
      switch (messageCode) {
         case PROPERTYTYPE:
            message = "Unsuppported the Property Type";
            break;
         case STEPTYPE:
            message = "Unsuppported the Step Type";
            break;
         case CLASSDEF:
            message = "Unsuppported the ClassDefinition Type";
            break;
         case ASSOCIATIONTYPE:
            message = "Unsuppported the Association Type";
            break;
         case USERDETAILTYPE:
            message = "Unsuppported the UserDetail Type";
            break;
         case PERMISSIONTYPE:
            message = "Unsuppported the Permssion Type";
            break;
         case PARTICIPANTTYPE:
            message = "Unsuppported the Partcipant Type";
            break;
         default:
            message = "Unsuppported the type";
            break;
      }
      return message;
   }
}
